<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Nettle-3.5.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;4.&nbsp;Security
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="mitkrb.html" title=
          "MIT Kerberos V5-1.18">Prev</a>
          <p>
            MIT Kerberos V5-1.18
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="nss.html" title="NSS-3.50">Next</a>
          <p>
            NSS-3.50
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="security.html" title=
          "Chapter&nbsp;4.&nbsp;Security">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="nettle" name="nettle"></a>Nettle-3.5.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Nettle
        </h2>
        <p>
          The <span class="application">Nettle</span> package contains a
          low-level cryptographic library that is designed to fit easily in
          many contexts.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://ftp.gnu.org/gnu/nettle/nettle-3.5.1.tar.gz">https://ftp.gnu.org/gnu/nettle/nettle-3.5.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnu.org/gnu/nettle/nettle-3.5.1.tar.gz">ftp://ftp.gnu.org/gnu/nettle/nettle-3.5.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 0e5707b418c3826768d41130fbe4ee86
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.9 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 73 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.4 SBU (with tests)
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/nettle">http://wiki.linuxfromscratch.org/blfs/wiki/nettle</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Nettle
        </h2>
        <p>
          Install <span class="application">Nettle</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          To test the results, issue: <span class="command"><strong>make
          check</strong></span>.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
chmod   -v   755 /usr/lib/lib{hogweed,nettle}.so &amp;&amp;
install -v -m755 -d /usr/share/doc/nettle-3.5.1 &amp;&amp;
install -v -m644 nettle.html /usr/share/doc/nettle-3.5.1</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">nettle-hash, nettle-lfib-stream,
              nettle-pbkdf2, pkcs1-conv and sexp-conv</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libhogweed.so and libnettle.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">/usr/include/nettle and
              /usr/share/doc/nettle-3.5.1</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="nettle-hash" name="nettle-hash"></a><span class=
                    "term"><span class=
                    "command"><strong>nettle-hash</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    calculates a hash value using a specified algorithm.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nettle-lfib-stream" name=
                    "nettle-lfib-stream"></a><span class="term"><span class=
                    "command"><strong>nettle-lfib-stream</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    outputs a sequence of pseudorandom (non-cryptographic)
                    bytes, using Knuth's lagged fibonacci generator. The
                    stream is useful for testing, but should not be used to
                    generate cryptographic keys or anything else that needs
                    real randomness.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nettle-pbkdf2" name=
                    "nettle-pbkdf2"></a><span class="term"><span class=
                    "command"><strong>nettle-pbkdf2</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    password-based key derivation function that take as input
                    a password or passphrase and typically strengthen it and
                    protect against certain pre-computation attacks by using
                    salting and expensive computation.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="pkcs1-conv" name="pkcs1-conv"></a><span class=
                    "term"><span class=
                    "command"><strong>pkcs1-conv</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts private and public RSA keys from PKCS #1 format
                    to sexp format.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="sexp-conv" name="sexp-conv"></a><span class=
                    "term"><span class=
                    "command"><strong>sexp-conv</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    converts an s-expression to a different encoding.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 18:46:23 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="mitkrb.html" title=
          "MIT Kerberos V5-1.18">Prev</a>
          <p>
            MIT Kerberos V5-1.18
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="nss.html" title="NSS-3.50">Next</a>
          <p>
            NSS-3.50
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="security.html" title=
          "Chapter&nbsp;4.&nbsp;Security">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
